package com.semeureka.fault.dao.impl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.semeureka.fault.bean.Rawdata;
import com.semeureka.fault.dao.RawdataDao;

@Component
public class RawdataDaoImpl implements RawdataDao {
	@Autowired
	private SessionFactory sessionFactory;

	@Override
	public void save(Rawdata rawdata) {
		sessionFactory.getCurrentSession().save(rawdata);
	}
}
